PDF Plugin for Xojo

ExtendedGraphicsState.SetAlphaStroke Method (console safe)

Sets alpha for the stroke

SetAlphaStroke(
   value as Single)

Parameters

value
0.0 = full transparent, 1.0 = opaque

Remarks

Setting alpha stroke example:


Dim state as ExtendedGraphicsState

state = pdf.CreateExtendedGraphicsState()
state.SetAlphaStroke(0.7)

myPage.SaveState()
myPage.SetExtendedState(state)

myPage.StrokeColor =&c0000FF
myPage.Rectangle(10,myPage.Height-160,50,50)
myPage.Draw()
myPage.RestoreState()

See Also

ExtendedGraphicsState Class